package com.zqwh.xtool.model;

import com.zqwh.yj.sdk.utils.httpRequest.subscribers.NetCallback;
import com.zqwh.xtool.domain.LendInfo;
import com.zqwh.xtool.domain.LentData;
import com.zqwh.xtool.domain.StockVO;
import com.zqwh.xtool.greendao.db.LendOrder;
import com.zqwh.xtool.greendao.db.LendOrderDetail;

import java.util.HashMap;
import java.util.List;

public interface LendOrderModel {
    void getOwingStock(Long devId, Long userId, NetCallback<LentData> callback);
    void getPreSubmitInfo(Long devId, Long userId, String epcs, NetCallback<LendInfo> callback);
    void submitLendReturnOrder(Long devId, Long userId, String epcs, NetCallback<Object> callback);
    void submitLendOrder(Long devId, Long userId, String orderNo, String stockIds, NetCallback<Object> callback);
    void submitReturnOrder(Long devId, Long userId, String stockIds, NetCallback<Object> callback);
    void getLentOrderDetailList(Long devId, Long userId, NetCallback<HashMap<String, List<StockVO>>> callback);
    boolean insertMultLendOrder(List<LendOrder> lendOrderList);
    boolean insertMultLendOrderDetail(List<LendOrderDetail> lendOrderDetailList);
}
